<?php
namespace App\Libs\Tools;
class ResponseTools{

    public static function create_success_response_json($msg="success"){
        $result=array();
        $result['successFlag']=1;
        $result['msg']=$msg;
        return $result;
    }
    public static function create_error_response_json($msg="error"){
        $result=array();
        $result['successFlag']=0;
        $result['msg']=$msg;
        return $result;
    }
}